<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/static/jquery-ui-1.12.1/external/jquery/jquery.js">
    <link rel="stylesheet" href="/static/论文_CSS/user_info.css">
    <script src="/static/bootstrap/js/bootstrap.js"></script>
</head>
<body>
    <div class="body_header">
        <span>校园二手电子产品交易网后台管理中心</span>
    </div>
    <div class="body-left">
        <form action="/User_center/" method="get">
            <div class="body-left-btn1"><button type="button" class="btn btn-info" onclick="user();" id="i1">用户管理</button></div>
            <div class="body-left-btn2"><button type="button" class="btn btn-info">商家管理</button></div>
            <div class="body-left-btn3"><button type="button" class="btn btn-info">公告管理</button></div>
            <div class="body-left-btn4"><button type="button" class="btn btn-info">商品管理</button></div>
        </form>
    </div>
    <div class="body-right">
            <div class="panel panel-default">
                <div class="panel-heading"><h2 style="text-align: center">用户信息表详情 </h2></div>
                <table class="table table-hover table-bordered " style="text-align: center">
                    <tr>
                        <th>序号</th>
                        <th>数据库ID</th>
                        <th>用户名</th>
                        <th>代码</th>
                        <th>邮箱</th>
                        <th>联系方式</th>
                        <th>学号</th>
                        <th>地址</th>
                        <th>管理</th>
                    </tr>
                    {% for row in user_list %}
                            <tr>
                                <td>{{ forloop.counter }}</td>
                                <td>{{ row.id }}</td>
                                <td>{{ row.username }}</td>
                                <td>{{ row.userToken }}</td>
                                <td>{{ row.email }}</td>
                                <td>{{ row.phone }}</td>
                                <td>{{ row.number }}</td>
                                <td>{{ row.userAddress }}</td>
                                <td>
                                    <a href="/delete/?id={{row.id}}"><button type="button" class="btn btn-danger">删除</button></a>
                                    <a href="/edit/?id={{row.id}}"><button type="button" class="btn btn-success">修改</button></a>
                                    <a href="/Add_userinfo/"><button type="submit" class="btn btn-primary">添加</button></a>
                                </td>
                             </tr>
                    {% endfor %}
                </table>
            </div>
    </div>
    <div class="body-down">
        <span style="text-align: center">
            <h2>谨慎操作，得不偿失.....哈哈哈哈哈</h2>
            <h3>谨慎操作，得不偿失.....哈哈哈哈哈</h3>
            <h4>谨慎操作，得不偿失.....哈哈哈哈哈</h4>
            <h5>谨慎操作，得不偿失.....哈哈哈哈哈</h5>
            <h6>谨慎操作，得不偿失.....哈哈哈哈哈</h6>

        </span>
    </div>
    <script>
        function user() {
            document.getElementById('i1');
            window.location.href="/User_center/";
        }
    </script>
</body>
</html>






